﻿Imports System.Windows.Forms
Imports ArfaUI

Public Class TemplateTreeDetailPage
    Inherits PageTemplate
    Overridable Sub createtree()
       
    End Sub
    Overridable Sub OnSelectTree()
        
    End Sub
    Private Sub TemplateTreeDetailPage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TreeMenu.Nodes.Clear()
        createtree()
    End Sub

    Private Sub LinkExpand_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkExpand.LinkClicked
        TreeMenu.ExpandAll()
    End Sub

    Private Sub LinkCollapse_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkCollapse.LinkClicked
        TreeMenu.CollapseAll()
    End Sub

    Private Sub TreeMenu_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeMenu.AfterSelect
        OnSelectTree()
    End Sub
End Class
